package com.dalin.platform.loa.condition;

import com.dalin.common.pager.Condition;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-17                                                     *
 * @modDate: 2010-06-17                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LoaProjectCondition extends Condition{
    private String projectCode; // PROJECT_CODE,128,0
    private String projectName; // PROJECT_NAME,128,0
    private String projectDescription; // PROJECT_DESCRIPTION,512,0
    private Integer valid = 1; // VALID,2,0


    public LoaProjectCondition prepareParams() {
        setBaseQueryStr("from LoaProjectEntity h");
        setParam("h.projectCode", "like", "%" + projectCode + "%");
        setParam("h.projectName", "like", "%" + projectName + "%");
        setParam("h.projectDescription", "like", "%" + projectDescription + "%");
        setParam("h.valid", "=", valid);
        return this;
    }


	public String getProjectCode() {
		return projectCode;
	}


	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}


	public String getProjectName() {
		return projectName;
	}


	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}


	public String getProjectDescription() {
		return projectDescription;
	}


	public void setProjectDescription(String projectDescription) {
		this.projectDescription = projectDescription;
	}


	public Integer getValid() {
		return valid;
	}


	public void setValid(Integer valid) {
		this.valid = valid;
	}
}
